export default {
    getUser: (state) =>{
        return state.userInfo;
    },
    doneTodos: state => {
        return state.todos.filter(todo => todo.done);
    },
    doneTodosCount: (state, getters) => {
        return getters.doneTodos.length
    },
    getLoginState: (state) =>{
        return state.loginState;
    },
}